import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_spec_id", ["specId"], {})
@Entity("rrz_goods_spec_values", { schema: "rrzcms" })
export class RrzGoodsSpecValues {
  @PrimaryGeneratedColumn({
    type: "mediumint",
    name: "spec_value_id",
    comment: "规格值ID",
    unsigned: true,
  })
  specValueId: number;

  @Column("bigint", {
    name: "spec_id",
    comment: "规格ID",
    unsigned: true,
    default: () => "'0'",
  })
  specId: string;

  @Column("varchar", { name: "spec_value", comment: "规格值", length: 100 })
  specValue: string;
}
